<?php

function __autoload($class_name) {
	require_once ( "./$class_name.class.php" );
}

$ft=new Facture();
echo "<pre>";
echo  "Prix Ht :". $ft->getPrixHt();
$ft->setPrixHt(10);
echo "\n";
echo  "Prix Ht :". $ft->getPrixHt();

# $ft->setParam0("0");
# $ft->setParam1("1");
# ...
# $ft->setParam9("9");
for ($i=0;$i<10;$i++) {
	$fct="setParam$i";	
	$ft->$fct("$i");
	
	#print_r($ft);
}

#for ($i=0;$i<10;$i++) {
#	$fct="getParam$i";	
#	echo "$fct() => ".$ft->$fct()."\n";
#}

#$ft->nom="toto";
#echo $ft->prixHt;
#echo "</pre>";

#echo "\n".$ft;


Facture::save("f1", $ft);

exit(0);


?>